/*
 * @Description:
 * @Author: zhaolei
 * @Date: 2023-04-18 19:51:34
 */

import request from '@/router/axios';

// 新增溯源记录
export function addObj(data) {
  return request({
    url: '/core/pet/trace/source',
    method: 'post',
    data,
  });
}

// 查询溯源记录
export function fetchTraceList(petId) {
  return request({
    url: `/core/pet/trace/source/list/${petId}`,
    method: 'get',
  });
}
